
FROM 10.4.10.14/library/openjdk:11-jdk

EXPOSE 8082

#update system timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata


RUN mkdir /app

WORKDIR /app
COPY  ./dist/ /app/dist/
COPY  ./server/ /app/server/
COPY  ./client/ /app/client/
COPY  ./app/build/libs/*.jar /app/app.jar

ENTRYPOINT ["java", "-XX:+UnlockExperimentalVMOptions", "-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]